import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import $http from "./$http";
import Bus from "@/service/event.bus";
import debounce from "@/utils/debounce";
import { handleAfsType } from "@/utils/common.js";
import ElementUI from "element-ui";
import "@/assets/js/elementui";
import "element-ui/lib/theme-chalk/index.css";
import "@/assets/css/index.scss";
import "./assets/css/font-icon/iconfont.css";
import "font-awesome/css/font-awesome.min.css"; // 引入fontawesome图标

Vue.config.productionTip = false;
Vue.use($http);
Vue.mixin(debounce);
Vue.use(ElementUI);
Vue.prototype.$bus = Bus;
Vue.prototype.$utils = {
  handleAfsType,
};

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
